package cn.zhouchao.org.mapper;

import cn.zhouchao.basic.mapper.BaseMapper;
import cn.zhouchao.org.domain.Department;
import cn.zhouchao.org.domain.Employee;
import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {
    // 极限树(不要双for，减少遍历次数，效率提高)
    List<Department> tree();
    // 抽屉：通过前端点击部门的id，到后端查所有员工，再通过其id查到该员工所有数据
    List<Employee> findByIdEmp(Long id);
}
